#ifndef STARTMENU_H
#define STARTMENU_H

#include <QWidget>
#include "widget.h"
#include <QPaintEvent>
namespace Ui {
class startMenu;
}

class startMenu : public QWidget
{
    Q_OBJECT

public:
    explicit startMenu(QWidget *parent = nullptr);
    ~startMenu();

    void paintEvent(QPaintEvent *event)
    {
        QPainter painter(this);
        // 背景图片
        painter.drawPixmap(0,0,width(),height(),QPixmap("D:/QT/Projects/snakepro/rsc/home.jpg"));
        // 窗口背景色
        //    painter.setBrush(Qt::black);
        //    painter.drawRect(this->rect());
    }
private slots:
    void on_singlePlayer_Button_clicked();

    void on_multipePlayer_button_clicked();

    void on_quit_Button_clicked();

private:
    Ui::startMenu *ui;
};

#endif // STARTMENU_H
